package com.mikao.dao;

import com.mikao.entity.Goods;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author kenny
 */
public interface GoodsDao extends JpaRepository<Goods, Long>, JpaSpecificationExecutor {

    /**
     * 查找积分商品
     *
     * @param isPoint 是否为积分商品
     * @return list
     */
    List<Goods> findAllByIsPointOrderByCreateTimeDesc(Boolean isPoint);
}
